package cn.edu.scau.cmi.chenyuanying.simpleFactoryMethod;

public class MeatFactory {
	public static Meat getMeatObj(String option) {
		if(option.compareTo("Beef") == 0) return new Beef();
		else if(option.compareTo("Chicken") == 0) return new Chicken();
		else return new Pork();
	}
}
